package com.zhuoli.service.springboot.configuration.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: zhuoli
 * @Date: 2018/7/24 11:04
 * @Description:
 */
@Component
public class GetApplicationProperties2 {
    @Value("${zhuoli.name}")
    private String name;

    @Value("${zhuoli.age}")
    private Integer age;

    @Override
    public String toString() {
        return "GetProperties2{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
